﻿@model SoftHotel.Models.Consumo


@{
    ViewBag.Title = "Buscar";
}


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

 <h1><strong>Consumos</strong></h1>
 <h2>
    Agregar<hr align="left" width="80" noshade="noshade" />   
 </h2>
 <br />
 @using (Html.BeginForm("Create", "Consumo", FormMethod.Get))
 {    <input type="submit" name="Agregar" value="Agregar" style = " margin-left : 100px;" />
 }


@using (Html.BeginForm()) {

        <h2>
        Buscar<hr align="left" width="80" noshade="noshade" />   
    </h2>
    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 450px; margin-bottom: 0px;">
	<tbody>
	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;" align="">Número de reserva</td>
		<td style="width: 220px;">		
        <!--Campos para búsqueda: numeroReserva, nombreCliente, numeroDocumento, fechaReserva, tipoReserva-->
        @Html.TextBoxFor(Model => Model.idReserva)
		</td>
	</tr>
	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;">Cliente </td>
		<td style="width: 220px;">
		@Html.TextBoxFor(Model => Model.idCliente)
		</td>		
	</tr>
	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 123px;">Fecha </td>
		<td style="width: 194px;">@Html.TextBoxFor(Model => Model.fecha) </td>
		<td></td>
	</tr>
    	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 123px;">Estado </td>
		<td style="width: 194px;">@Html.TextBoxFor(Model => Model.estado) </td>
		<td></td>
	</tr>
</tbody>
</table>
<br />
<input value="Buscar" type="submit" name = "button" style = " margin-left : 100px;"/>
}